cmake_minimum_required(VERSION 3.13.0)

project(Ogl)

set(CMAKE_CXX_STANDARD 17)

#  depdency
add_subdirectory(dep)

add_subdirectory(Gut)
set(gut_include_dirs dep/glm dep/glfw/include dep/glfw/deps)
target_include_directories(ogl-gut PUBLIC ${gut_include_dirs})
target_link_libraries(ogl-gut PUBLIC glfw)

add_subdirectory(Math )
set(math_include_dirs dep/glm)
target_include_directories(ogl-math PUBLIC ${math_include_dirs})

add_subdirectory(imgui)
set(imgui_include_dirs dep/glfw/include)
target_include_directories(ogl-imgui PUBLIC ${imgui_include_dirs})
target_link_libraries(ogl-imgui PUBLIC ogl-gut)

add_subdirectory(Model)
set(model_include_dirs dep/glm)
target_include_directories(ogl-model PUBLIC ${model_include_dirs})

# set(model_fbx_include_dirs dep/glm dep/assimp/include)
# find_package(assimp)
# target_include_directories(ogl-model-fbx PUBLIC ${model_fbx_include_dirs})
# target_link_libraries(ogl-model-fbx PUBLIC assimp)

add_subdirectory(Physics)

set(physics_include_dirs dep/glm)
find_package(reactphysics3d)
target_include_directories(ogl-physics PUBLIC ${physics_include_dirs})
target_link_libraries(ogl-physics PUBLIC reactphysics3d)


